﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DAL
{
    public partial class ComparativoDevItem
    {

        public void Add(dbGestionDataContext _db,
                        int idComparativoDev,
                        int idComparativoItem,
                        decimal totalBase,
                        decimal cantidadbase,
                        decimal total,
                        decimal cantidad)
        {

        
            this.idComparativoDev=idComparativoDev;
            this.idComparativoItem=idComparativoItem;
            this.totalBase=totalBase;
            this.cantidadbase=cantidadbase;
            this.total=total;
            this.cantidad = cantidad;
            _db.ComparativoDevItems.InsertOnSubmit(this);

            _db.SubmitChanges();


        }

    }
}
